package org.spring.oss;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@EnableConfigurationProperties(OssConfig.class)
@Configuration
public class SpringConfig {
    @Bean
    public IOss getOss(OssConfig ossConfig){
        return OssFactory.createOss(ossConfig);
    }
}
